package com.atguigu.gmall.payment.service;

import com.alipay.api.AlipayApiException;
import com.atguigu.gmall.model.payment.PaymentInfo;
import org.springframework.stereotype.Service;

/**
 * @author sunjipu
 * @create 2020-04-22 15:35
 */
@Service
public interface AlipayService {
    String createaliPay(Long orderId) throws AlipayApiException;

    String refund(String out_trade_no);


    /***
     * 关闭交易
     * @param paymentInfo
     * @return
     */
    void closePay(PaymentInfo paymentInfo);
}
